<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div{
				width: 500px;
				margin: 200px auto;
			}
		</style>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				var bd = $("body");
				var btn = $("button");
				
				$(btn[0]).click(function(){
					bd.css("background","#fff");
				})
				$(btn[1]).click(function(){
					bd.css("background","#000");
				})
			})
		</script>
	</head>
	<body>
		<button>开</button><button>关</button>
		<div class="div">
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
			<p>abc</p>
		</div>		
	</body>
</html>
